<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
    <div class="box" :style="style1"></div>
    <div class="box" :style="style2"></div>
    <div style="width:100px;height: 200px;background:red;margin-top: 20px"></div>
</div>
</body>
<script>
    const app = Vue.createApp({
        data() {
            return {
                style1:{
                    width:'100px',
                    height:'200px',
                    background:'green'
                },
                style2:{
                    width:'100px',
                    height:'200px',
                    background:'grey',
                    marginTop:'20px'
                }
            }
        },
        methods:{
        }
    }).mount("#app")
</script>
</html>